class Sungjuk_6_5 {
	void title(){
		System.out.println("** 추상클래스 ***");
		System.out.println("** 자바 성적 출력 ***");
		System.out.println("** 학번 성명 점수 ***");
		System.out.println("** ---------- ***");
	}
}
class Sungjuk_6_5_1 extends Sungjuk_6_5{
	String hakbun1 = "20052426";
	String name1 = "sooeun";
	int jumsu1=97;
	void prt_data1(){
		System.out.println(hakbun1 + " " + name1 + " " + jumsu1);
	}
}
class Sungjuk_6_5_2 extends Sungjuk_6_5_1{
	String hakbun2 = "20062434";
	String name2 = "sooeun2";
	int jumsu2=94;
	void prt_data2(){
		System.out.println(hakbun2 + " " + name2 + " " + jumsu2);
	}
}
class Sungjuk_6_5_3 extends Sungjuk_6_5_2{
	String hakbun3 = "20062434";
	String name3 = "sooeun3";
	int jumsu3=87;
	void prt_data3(){
		System.out.println(hakbun3 + " " + name3 + " " + jumsu3);
	}
}
class Sungjuk_6_5_4 extends Sungjuk_6_5_3{
	String hakbun4 = "20062434";
	String name4 = "sooeun3";
	int jumsu4=87;
	void prt_data4(){
		System.out.println(hakbun4 + " " + name4 + " " + jumsu4);
	}
}
class ex_6_5 extends Sungjuk_6_5_4{
	public static void main(String[] args){
		Sungjuk_6_5 test = new Sungjuk_6_5();
		test.title();
		Sungjuk_6_5_1 t1 = new Sungjuk_6_5_4();
		Sungjuk_6_5_2 t2 = new Sungjuk_6_5_4();
		Sungjuk_6_5_3 t3 = new Sungjuk_6_5_4();
		Sungjuk_6_5_4 t4 = new Sungjuk_6_5_4();
		
		t1.prt_data1();
		
		t2.prt_data1();
		t2.prt_data2();
		
		t3.prt_data1();
		t3.prt_data2();
		t3.prt_data3();

		t4.prt_data1();
		t4.prt_data2();
		t4.prt_data3();
		t4.prt_data4();
		
	}
	
}